<template>
	<picker mode="date" fields="month" @change="change">
		<fui-form-item label="代账终止时间" arrow highlight>
			<view v-if="!agency_end_month" class="fs-color__label">请选择代账终止时间</view>
			<view v-else>{{ agency_end_month }}</view>
		</fui-form-item>
	</picker>
</template>

<script setup>
	import { ref } from 'vue';

	const agency_end_month = defineModel('agency_end_month');
	const change = (e) => {
		agency_end_month.value = e.detail.value;
	};
</script>

<style></style>